package com.lht.designPattern.proxy.jdkProxy;

import java.lang.reflect.Proxy;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-10-23
 */
public class Demo {

    public static void main(String[] args) {
        Driver driver = (Driver) Proxy.newProxyInstance(Driver.class.getClassLoader(), new Class<?>[]{Driver.class}, new DriverProxy(new GogDriver()));
        driver.driver();
    }

}
